Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing check for multiline highlighting #2392

Closed
wants to merge 1 commit into from
Closed

fix missing check for multiline highlighting #2392

wants to merge 1 commit into from

Conversation

titoBouzout
Copy link
Contributor

When show_multiline_document_highlights is false it shouldn't be highlighting regions that spawn multiple lines

Comment on lines +823 to +824
if multiline and not userprefs().show_multiline_document_highlights:
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember exactly how all of this works but shouldn't the existing same check above prevent those from being added to kind2regions in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, yes, thanks, it seems I had an unrelated multiline preference set and wasn't working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants